package com.examination.system.administration;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 寇淇芮
 * @Date 2019/9/15 10:53
 */
@Entity
@Data
@ToString
@ApiModel
@Table(name = AdministrationTableName.EMPLOYEE)
@GenericGenerator(name = "employee-uuid", strategy = "assigned")
public class Employee implements Serializable {
    @Id
    @GeneratedValue(generator = "employee-uuid")
    @Column(length = 32)
    @ApiModelProperty(value = "员工标识",example = "id")
    private String id;

   private String idNumber;
   private String name;
   private Boolean sex;
   private String national;
   private Date birthDate;
   private String maritalStatus;
   private String thePhone;
   private String address;
   @Column(name = "department")
   private String  department;
   private String  position;
   private String politicalLandscape;
   private String nativePlace;
   private String  foreignLanguageVariety;
   private String url;
   private Date inTheTime;
   private Date departureTime;
   private String note;
}
